//==========api=========

let burl;

if (process.env.NODE_ENV == "development") {
  burl = "http://127.0.0.1:8083";
} else {
  burl = "http://134.175.62.44:8083";
}

export const baseUrl = burl; //"http://127.0.0.1:8083";

export const basePagesize = 10; //请求每页展示数

//==========store key==========
export const userSessionKey = "userSessionKey"; //
export const userNameKey = "userNameKey";
export const userNickNameKey = "userNickNameKey";

//========== Event ==========
export const proj_change_event = "proj_change_event"; // 项目发生了修改

//==========store 常量==========
//iOS导出的语言选项
export const iOSExportLangItems = [
  { name: "简体中文", indef: "zhs", check: true },
  { name: "繁体中文", indef: "zht", check: false },
  { name: "英语", indef: "en", check: true },
  { name: "德语", indef: "de", check: true },
  { name: "日语", indef: "ja", check: true },
  { name: "乌克兰", indef: "uk", check: false },
  { name: "西班牙", indef: "es", check: false },
  { name: "意大利", indef: "it", check: false },
  { name: "波兰", indef: "pl", check: false },
  { name: "韩语", indef: "ko", check: true },
  { name: "俄语", indef: "ru", check: false },
  { name: "法语", indef: "fr", check: false },
  { name: "印度尼西亚", indef: "idn", check: false },
  { name: "葡萄牙", indef: "pt", check: false },
  { name: "越南", indef: "vi", check: false },
  { name: "希伯来语", indef: "iw", check: false },
  { name: "阿拉伯语", indef: "ar", check: false },
  { name: "高棉语", indef: "km", check: false },
  { name: "印尼", indef: "in", check: false },
  { name: "捷克", indef: "cs", check: false },
  { name: "阿塞拜疆语", indef: "az", check: false },
  { name: "荷兰", indef: "nl", check: false },
  { name: "老挝", indef: "lo", check: false },
  { name: "土耳其", indef: "tr", check: false },
  { name: "泰语", indef: "th", check: false },
  { name: "孟加拉", indef: "bn", check: false },
  { name: "丹麦", indef: "da", check: false },
  { name: "波斯语", indef: "fa", check: false },
  { name: "印地语", indef: "hi", check: false },
  { name: "格鲁吉亚", indef: "ka", check: false },
  { name: "塞尔维亚", indef: "sr", check: false },
  { name: "蒙古", indef: "mn", check: false },
  { name: "瑞典", indef: "sv", check: false },
  { name: "马其顿", indef: "mk", check: false }
];

//android的语言导出选项
export const androidExportLangItems = [
  { name: "简体中文", indef: "zhs", check: true },
  { name: "繁体中文", indef: "zht", check: false },
  { name: "英语", indef: "en", check: true },
  { name: "德语", indef: "de", check: true },
  { name: "日语", indef: "ja", check: true },
  { name: "乌克兰", indef: "uk", check: false },
  { name: "西班牙", indef: "es", check: false },
  { name: "意大利", indef: "it", check: false },
  { name: "波兰", indef: "pl", check: false },
  { name: "韩语", indef: "ko", check: true },
  { name: "俄语", indef: "ru", check: false },
  { name: "法语", indef: "fr", check: false },
  { name: "印度尼西亚", indef: "idn", check: false },
  { name: "葡萄牙", indef: "pt", check: false },
  { name: "越南", indef: "vi", check: false },
  { name: "希伯来语", indef: "iw", check: false },
  { name: "阿拉伯语", indef: "ar", check: false },
  { name: "高棉语", indef: "km", check: false },
  { name: "印尼", indef: "in", check: false },
  { name: "捷克", indef: "cs", check: false },
  { name: "阿塞拜疆语", indef: "az", check: false },
  { name: "荷兰", indef: "nl", check: false },
  { name: "老挝", indef: "lo", check: false },
  { name: "土耳其", indef: "tr", check: false },
  { name: "泰语", indef: "th", check: false },
  { name: "孟加拉", indef: "bn", check: false },
  { name: "丹麦", indef: "da", check: false },
  { name: "波斯语", indef: "fa", check: false },
  { name: "印地语", indef: "hi", check: false },
  { name: "格鲁吉亚", indef: "ka", check: false },
  { name: "塞尔维亚", indef: "sr", check: false },
  { name: "蒙古", indef: "mn", check: false },
  { name: "瑞典", indef: "sv", check: false },
  { name: "马其顿", indef: "mk", check: false }
];

//==========提示语==========
export const error_connect_reload = "连接失败,请刷新页面";
export const error_export = "导出失败";

//========== Event ==========
export const prod_des_mode_change_event = "prod_des_mode_change_event"; //在新旧版之间切换
export const prod_des_upload_success_event = "prod-des-upload-success-event"; //产品描述修改成功
export const prod_des_save_event = "prod-des-save-event"; //产品描述修改成功
export const prod_editmode_change_event = "prod-editmode-change-event"; //产品描述编辑模式发生变化
export const prod_des_item_delete_event = "prod-des-item-delete-event"; //产品描述item删除
export const prod_des_item_move_event = "prod-des-item-move-event"; //产品描述item移动

//========== 其他 ==========
